﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Structures
{
    public class PubDirContactSearch : PubDirContactBase
    {
        public bool ActiveOnly
        {
            get { return _ActiveOnly == 1; }
            set { _ActiveOnly = value ? (byte)1 : (byte)0; }
        }

        public override PubDirContactGender Gender
        {
            get { return (PubDirContactGender)this.GenderRaw; }
            set { this.GenderRaw = (byte)value; }
        }

        public int NextStart
        {
            get { return _nextstart; }
            set { _nextstart = value; }
        }

        public int Number
        {
            get { return _FmNumber; }
            set { _FmNumber = value; }
        }

        public int SearchStart
        {
            get { return _fmstart; }
            set { _fmstart = value; }
        }

        public GGShowType Show
        {
            get { return TranslateShow(_FmStatus); }
            set { _FmStatus = (byte)value; }
        }

        public byte ShowRaw
        {
            get { return _FmStatus; }
            set { _FmStatus = value; }
        }
    }
}
